import type { App } from 'vue'
import { authDirective } from './authDirective'
import { setupPermissionDirective } from './permission/hasPermi'
import { queryExpand } from './queryExpand'
import { dividerSlide } from './dividerSlide'

export default function setupDirectives(app: App<Element>) {
  // 用户权限指令，用法v-auths
  authDirective(app)
  // 按钮权限，用法: v-hasPermi
  setupPermissionDirective(app)
  // el-form单行展开收起（v-query-expand）
  queryExpand(app)
  // flex左右结构拖动调整宽度（v-divider-slide）
  dividerSlide(app)
}
